//
//  SSFirstPageTravelCityCell.m
//  Travel_World
//
//  Created by dlios on 15/10/14.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "SSFirstPageTravelCityCell.h"

@implementation SSFirstPageTravelCityCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.photoView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.photoView];
        
        self.cnnameLabel = [[UILabel alloc] init];
        self.cnnameLabel.font = [UIFont systemFontOfSize:16];
        self.cnnameLabel.textAlignment = NSTextAlignmentLeft;
        [self.contentView addSubview:self.cnnameLabel];
        
        self.ennameLabel = [[UILabel alloc] init];
        self.ennameLabel.textAlignment = NSTextAlignmentLeft;
        self.ennameLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.ennameLabel];
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.photoView.frame = CGRectMake(30, 5, self.frame.size.height, self.frame.size.height - 10);
    self.cnnameLabel.frame = CGRectMake(self.frame.size.height + 50, 10, self.frame.size.width - self.frame.size.height - 50, 30);
    self.ennameLabel.frame = CGRectMake(self.frame.size.height + 50, 50, self.frame.size.width - self.frame.size.height - 50, 30);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
